/** class */
/**
 * The Player class is used to manage the data specific to the
 * Player.  The UserAgent inherits from the Player class
 * as the UserAgent is a type of player.
 * 
 */

public class Player {
	
	/** variables */
	/** string to store user id */
	private String userId;
	/** string to store user name */
	private String userName;
	/** int to store number of matches */
	private int matches;
	/** int to store number of wins */
	private int wins;
	/** int to store number of losses */
	private int losses;
	/** int to store number of interrupts */
	private int interrupt;
	/** int to store score of player */
	private int score;
	/** int to store rank of player */
	private int rank;

	private String password;
	
	
	/** constructor */
	/**
	 * Creates the player object to manage players in the TCG
	 * 
	 * @param userName		user name of player
	 * @param matches		number of matches played
	 * @param wins			number of matches won
	 * @param losses		number of matches lost
	 * @param interrupt		number of matches interrupted
	 * @param score			score of player
	 */
	public Player(String userId, String userName, int matches, int wins, 
		int losses, int interrupt, int score, int rank, boolean agent) {
		this.userId = userId;										// set user id
		this.userName = userName;									// set user name
		this.matches = matches;										// set number of matches
		this.wins = wins;											// set number of wins
		this.losses = losses;										// set number of losses
		this.interrupt = interrupt;									// set number of interrupts
		this.score = score;											// set score
		this.rank = rank;											// set rank
	}
	
	/**
	 * Creates player object for human players
	 * 
	 * @param userName
	 */
	public Player(String userId, String password) {
		this.userId = userId;
		this.password = password;
	}

	/** get and set methods */
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getMatches() {
		return matches;
	}

	public void setMatches(int matches) {
		this.matches = matches;
	}

	public int getWins() {
		return wins;
	}

	public void setWins(int wins) {
		this.wins = wins;
	}

	public int getLosses() {
		return losses;
	}

	public void setLosses(int losses) {
		this.losses = losses;
	}

	public int getInterrupt() {
		return interrupt;
	}

	public void setInterrupt(int interrupt) {
		this.interrupt = interrupt;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public int getRank() {
		return rank;
	}

	public void setRank(int rank) {
		this.rank = rank;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	

}
